package com.fishery.processing.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.fishery.processing.dao.FactoryDao;
import com.fishery.processing.entity.Factory;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fishery.processing.entity.vo.FactoryMessageVo;
import com.fishery.processing.entity.vo.FactoryOfBaseVo;
import com.fishery.processing.entity.vo.FactoryVo;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ${author}
 * @since 2021-01-14
 */
public interface FactoryService extends IService<Factory> {

    public int createFactory(Factory factory);

    public int deleteFactory(String factoryId);

    public int updateFactory(Factory factory);

    public Factory searchFactoryById(String factoryId);

    public IPage<Factory> searchFactoriesOfBase(String baseId,Integer page,Integer size);

    public List<Factory> searchFactoriesOfBase(String baseId);

    public List<Factory> searchFactoryByType(String type);

    public IPage<Factory> searchFactoryByType(String type,Integer page,Integer size);

    public FactoryOfBaseVo searchFactoryMessageOfBase(String baseId);

    public List<FactoryMessageVo> searchFactoryMessageOfAll();
}
